package com.jooq.example.service;

import com.jooq.example.domain.tables.pojos.SysDept;
import com.jooq.example.dto.PageModel;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface SysDeptService {

    @Transactional(rollbackFor = Exception.class)
    void save(SysDept sysDept);

    int saveWithSelect(SysDept sysDept);

    int update(SysDept sysDept);

    int updateWithSelect(SysDept sysDept);

    int delete(Integer id);

    SysDept queryById(Integer id);

    List<SysDept> list(SysDept sysDept);

    List<SysDept> listm(SysDept sysDept);

    List<SysDept> pageList(SysDept sysDept, PageModel pageModel);

}
